import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/SystemSetting'
        } ,
        
        {
            path:'/SystemSetting',
            component: () => import('@/views/SystemSetting'),
            redirect: '/SystemSetting/monitor',
           
            meta: {
                name: '智能巢箱',
            },
            children:[
                {
                    path:'/SystemSetting/monitor',
                    component: () => import('@/views/SystemSetting/monitor'),
                    meta: {
                        name: '巢箱监测',
                    }
                },
                {
                    path:'/SystemSetting/manage',
                    component: () => import('@/views/SystemSetting/manage'),
                    meta: {
                        name: '巢箱管理',
                    }
                }
            ]
        }
       

    ]
});